import React, { Component } from 'react'
import './index.scss'
import pubsub from 'pubsub-js'
export default class index extends Component {
    componentDidMount(){
        pubsub.publish("component","很抱歉，找不到页面")
    }
    render() {
        return (
        <div className="view404">
            <h2>糟糕，这里什么都没有</h2>
            <a href="javascript:window.history.go(-1)">←返回上个页面</a>
            <a href="/">前往首页→</a>
        </div>
        )
    }
}
